import { Column, Entity } from "typeorm";
import { BaseEntity } from "../../base/entity/base";
import { CommonAuditStatus } from "../../../interface";

@Entity('distributor_info')
export class DistributorInfoEntity extends BaseEntity {

    @Column({ comment: '状态', type: 'enum', enum: CommonAuditStatus, default: CommonAuditStatus.PENDING })
    status: CommonAuditStatus;

    @Column({ comment: '驳回原因', nullable: true })
    rejectReason?: string;

    @Column({ comment: '分销商等级ID', nullable: true })
    levelId?: number;

    @Column({ comment: '用户ID', nullable: false })
    userId: number

}